#include <UTFT.h>
#include "direction.h"
class Hero
{
private:
  UTFT* myScene;
  int width;
  int height;
  prog_uint16_t* stand_left;
  prog_uint16_t* stand_right;

  prog_uint16_t* move_left;
  prog_uint16_t* move_right;

  prog_uint16_t* jum_up;
  prog_uint16_t* jum_down;
  prog_uint16_t* jum_up_left;
  prog_uint16_t* jump_down_left;
  prog_uint16_t* jum_up_right;
  prog_uint16_t* jump_down_right;

  prog_uint16_t* sit_down_left;
  prog_uint16_t* sit_down_right;

public:
  int x;
  int y;
  Hero(){};
  Hero(UTFT* myScene,int width,int height,prog_uint16_t** img)
  {
    Serial.println("Back to Hero...");
    this->x=0;
    this->y=0;
    this->width = width;
    this->height = height;
    this->myScene = myScene;
    this-> stand_left = img[0];
    this-> stand_right = img[1];
    this-> move_left = img[2];
    this-> move_right = img[3];
    this-> jum_up = img[4];
    this-> jum_down = img[5];
    this-> jum_up_left = img[6];
    this-> jump_down_left = img[7];
    this-> jum_up_right = img[8];
    this-> jump_down_right = img[9];
    this-> sit_down_left = img[10];
    this-> sit_down_right = img[11];
    myScene->drawCircle(50,50,50);
  };
  void move(direction dir);
  void jump(direction dir);
  void down(direction dir);
  void fire(direction dir);
};






